using System;
using System.ComponentModel;
using System.Net;

namespace AutomaticEncodingDetection
{
    public class SmartWebClient : WebClient
    {
        protected override void OnDownloadDataCompleted(DownloadDataCompletedEventArgs e)
        {
            base.OnDownloadDataCompleted(e);

            return;
        }

        protected override void OnDownloadFileCompleted(AsyncCompletedEventArgs e)
        {
            base.OnDownloadFileCompleted(e);

            return;
        }

        protected override void OnDownloadStringCompleted(DownloadStringCompletedEventArgs e)
        {
            base.OnDownloadStringCompleted(e);

            return;
        }

        protected override void OnOpenReadCompleted(OpenReadCompletedEventArgs e)
        {
            base.OnOpenReadCompleted(e);

            return;
        }

        protected override void OnOpenWriteCompleted(OpenWriteCompletedEventArgs e)
        {
            base.OnOpenWriteCompleted(e);

            return;
        }

        public new string DownloadString(Uri address)
        {
            return base.DownloadString(address);
        }

        public new string DownloadString(string address)
        {
            return DownloadString(new Uri(address));
        }
    }
}
